<template>
  <view class="">
    <view v-for="item in logList" style="padding: 8px 16px">
      <view style="background-color: #e1e1e1; padding: 8px; border-radius: 4px">
        <view>昵称：{{ item.nickName || item.wxNumber }}</view>
        <view>位置：{{ item.position }}</view>
        <view>文档：{{ item.reportPath }}</view>
      </view>
    </view>
  </view>
</template>

<script>
  export default {
    data() {
      return {
        logList: [],
      };
    },
    onLoad(options) {
      this.requestList();
    },
    onShow() {},
    methods: {
      requestList() {
        const body = {};
        let baseUrl = "https://zlyz.jdsn.cn";
        // #ifdef H5
        baseUrl = "";
        // #endif
        uni.request({
          url: baseUrl + "/t/sysOperationLog/list?createBy=1",
          method: "get",
          header: {
            Accept: "application/json",
          },
          data: body,
          success: (res) => {
            const dataObj = res.data;
            if (dataObj.success && dataObj.result) {
              this.logList = res.data.result.records;
            }
          },
          fail: (res) => {
            debugger;
            console.log(res);
          },
        });
      },
    },
  };
</script>

<style></style>
